
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>临时模式 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Theme.html" />
    
    
    <link rel="prev" href="NAVG.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="LOCALE.html">
            
                <a href="LOCALE.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="EXTENDED.html">
            
                <a href="EXTENDED.html">
            
                    
                    快速介入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="STYLE.html">
            
                <a href="STYLE.html">
            
                    
                    样式规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="NAVG.html">
            
                <a href="NAVG.html">
            
                    
                    导航模式
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.1.5" data-path="TEMP.html">
            
                <a href="TEMP.html">
            
                    
                    临时模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="Theme.html">
            
                <a href="Theme.html">
            
                    
                    应用主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="NAVPARAM.html">
            
                <a href="NAVPARAM.html">
            
                    
                    自定义导航参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="VIEWMESSAGE.html">
            
                <a href="VIEWMESSAGE.html">
            
                    
                    视图消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <span>
            
                    
                    视图
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../VIEWS/EDITVIEW.html">
            
                <a href="../VIEWS/EDITVIEW.html">
            
                    
                    实体编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../VIEWS/EDITVIEWPAGE.html">
            
                <a href="../VIEWS/EDITVIEWPAGE.html">
            
                    
                    实体编辑视图(分页关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../VIEWS/EDITVIEWUPDOWN.html">
            
                <a href="../VIEWS/EDITVIEWUPDOWN.html">
            
                    
                    实体编辑视图(上下关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../VIEWS/EDITVIEWABOUT.html">
            
                <a href="../VIEWS/EDITVIEWABOUT.html">
            
                    
                    实体编辑视图(左右关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../VIEWS/MEDITVIEW.html">
            
                <a href="../VIEWS/MEDITVIEW.html">
            
                    
                    实体多表单编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../VIEWS/GRIDVIEW.html">
            
                <a href="../VIEWS/GRIDVIEW.html">
            
                    
                    实体表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="../VIEWS/GRIDEXPVIEW.html">
            
                <a href="../VIEWS/GRIDEXPVIEW.html">
            
                    
                    实体表格导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="../VIEWS/TABEXPVIEW.html">
            
                <a href="../VIEWS/TABEXPVIEW.html">
            
                    
                    实体分页导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.9" data-path="../VIEWS/EntityDataKanbanView.html">
            
                <a href="../VIEWS/EntityDataKanbanView.html">
            
                    
                    实体数据看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.10" data-path="../VIEWS/LISTVIEW.html">
            
                <a href="../VIEWS/LISTVIEW.html">
            
                    
                    实体列表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.11" data-path="../VIEWS/LISTEXPVIEW.html">
            
                <a href="../VIEWS/LISTEXPVIEW.html">
            
                    
                    实体列表导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.12" data-path="../VIEWS/DATAVIEW.html">
            
                <a href="../VIEWS/DATAVIEW.html">
            
                    
                    实体数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.13" data-path="../VIEWS/OPTIONVIEW.html">
            
                <a href="../VIEWS/OPTIONVIEW.html">
            
                    
                    实体选项操作视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.14" data-path="../VIEWS/DATAVIEWEXPVIEW.html">
            
                <a href="../VIEWS/DATAVIEWEXPVIEW.html">
            
                    
                    实体卡片导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.15" data-path="../VIEWS/CALENDARVIEW.html">
            
                <a href="../VIEWS/CALENDARVIEW.html">
            
                    
                    实体日历视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.16" data-path="../VIEWS/DAREXPVIEW.html">
            
                <a href="../VIEWS/DAREXPVIEW.html">
            
                    
                    实体日历导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.17" data-path="../VIEWS/TREEVIEW.html">
            
                <a href="../VIEWS/TREEVIEW.html">
            
                    
                    实体树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.18" data-path="../VIEWS/TREEEXPVIEW.html">
            
                <a href="../VIEWS/TREEEXPVIEW.html">
            
                    
                    实体树导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.19" data-path="../VIEWS/TREEGRIDEXVIEW.html">
            
                <a href="../VIEWS/TREEGRIDEXVIEW.html">
            
                    
                    实体树表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.20" data-path="../VIEWS/INDEXVIEW.html">
            
                <a href="../VIEWS/INDEXVIEW.html">
            
                    
                    应用首页视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.21" data-path="../VIEWS/AppKanBanView.html">
            
                <a href="../VIEWS/AppKanBanView.html">
            
                    
                    应用看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.22" data-path="../VIEWS/ENTITYKANBANVIEW.html">
            
                <a href="../VIEWS/ENTITYKANBANVIEW.html">
            
                    
                    实体看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.23" data-path="../VIEWS/GANTTVIEW.html">
            
                <a href="../VIEWS/GANTTVIEW.html">
            
                    
                    实体甘特图视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.24" data-path="../VIEWS/ENTITYCHARTVIEW.html">
            
                <a href="../VIEWS/ENTITYCHARTVIEW.html">
            
                    
                    实体图表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.25" data-path="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                <a href="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                    
                    实体数据选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.26" data-path="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                    
                    实体选择表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.27" data-path="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                    
                    实体选择树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.28" data-path="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                <a href="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                    
                    实体索引关系选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.29" data-path="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                    
                    实体工作流动态导航表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.30" data-path="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                    
                    实体工作流动态编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.31" data-path="../VIEWS/LOGINVIEW.html">
            
                <a href="../VIEWS/LOGINVIEW.html">
            
                    
                    应用登录视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.32" data-path="../VIEWS/DATAUPLOADVIEW.html">
            
                <a href="../VIEWS/DATAUPLOADVIEW.html">
            
                    
                    应用数据导入视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.33" data-path="../VIEWS/REDIRECTVIEW.html">
            
                <a href="../VIEWS/REDIRECTVIEW.html">
            
                    
                    实体数据重定向视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.34" data-path="../VIEWS/CUSTOM.html">
            
                <a href="../VIEWS/CUSTOM.html">
            
                    
                    实体自定义视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.35" data-path="../VIEWS/WIZARDVIEW.html">
            
                <a href="../VIEWS/WIZARDVIEW.html">
            
                    
                    实体向导视图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <span>
            
                    
                    部件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../CTRLS/FORM.html">
            
                <a href="../CTRLS/FORM.html">
            
                    
                    表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../CTRLS/GRID.html">
            
                <a href="../CTRLS/GRID.html">
            
                    
                    表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="../CTRLS/GRIDEXPBAR.html">
            
                <a href="../CTRLS/GRIDEXPBAR.html">
            
                    
                    表格导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="../CTRLS/SEARCHBAR.html">
            
                <a href="../CTRLS/SEARCHBAR.html">
            
                    
                    搜索栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="../CTRLS/SEARCHFORM.html">
            
                <a href="../CTRLS/SEARCHFORM.html">
            
                    
                    搜索表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="../CTRLS/DataKanBan.html">
            
                <a href="../CTRLS/DataKanBan.html">
            
                    
                    数据看板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="../CTRLS/PortalComponents.html">
            
                <a href="../CTRLS/PortalComponents.html">
            
                    
                    门户部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="../CTRLS/TABEXPPANEL.html">
            
                <a href="../CTRLS/TABEXPPANEL.html">
            
                    
                    分页导航面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="../CTRLS/TABVIEWPANEL.html">
            
                <a href="../CTRLS/TABVIEWPANEL.html">
            
                    
                    分页视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="../CTRLS/APPMENU.html">
            
                <a href="../CTRLS/APPMENU.html">
            
                    
                    应用菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="../CTRLS/LIST.html">
            
                <a href="../CTRLS/LIST.html">
            
                    
                    列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="../CTRLS/LISTEXPBAR.html">
            
                <a href="../CTRLS/LISTEXPBAR.html">
            
                    
                    列表导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="../CTRLS/PANEL.html">
            
                <a href="../CTRLS/PANEL.html">
            
                    
                    面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.14" data-path="../CTRLS/DATAVIEWCTRL.html">
            
                <a href="../CTRLS/DATAVIEWCTRL.html">
            
                    
                    数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.15" data-path="../CTRLS/DATAVIEWEXPBAR.html">
            
                <a href="../CTRLS/DATAVIEWEXPBAR.html">
            
                    
                    卡片视图导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.16" data-path="../CTRLS/DataRelationPage.html">
            
                <a href="../CTRLS/DataRelationPage.html">
            
                    
                    数据关系分页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.17" data-path="../CTRLS/DATARELATIONFIELD.html">
            
                <a href="../CTRLS/DATARELATIONFIELD.html">
            
                    
                    数据关系栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.18" data-path="../CTRLS/CALENDAR.html">
            
                <a href="../CTRLS/CALENDAR.html">
            
                    
                    日历部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.19" data-path="../CTRLS/CALENDARTIMELINE.html">
            
                <a href="../CTRLS/CALENDARTIMELINE.html">
            
                    
                    日历部件(时间轴)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.20" data-path="../CTRLS/CALENDAREXPBAR.html">
            
                <a href="../CTRLS/CALENDAREXPBAR.html">
            
                    
                    日历导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.21" data-path="../CTRLS/TREEEXPBAR.html">
            
                <a href="../CTRLS/TREEEXPBAR.html">
            
                    
                    树导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.22" data-path="../CTRLS/TREEVIEWUNIT.html">
            
                <a href="../CTRLS/TREEVIEWUNIT.html">
            
                    
                    树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.23" data-path="../CTRLS/TREEGRID.html">
            
                <a href="../CTRLS/TREEGRID.html">
            
                    
                    树表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.24" data-path="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                <a href="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                    
                    多编辑视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.25" data-path="../CTRLS/KANBANVIEWUNIT.html">
            
                <a href="../CTRLS/KANBANVIEWUNIT.html">
            
                    
                    看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.26" data-path="../CTRLS/GANTT.html">
            
                <a href="../CTRLS/GANTT.html">
            
                    
                    甘特图部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.27" data-path="../CTRLS/DATACHART.html">
            
                <a href="../CTRLS/DATACHART.html">
            
                    
                    数据图表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.28" data-path="../CTRLS/SELECTVIEWPANEL.html">
            
                <a href="../CTRLS/SELECTVIEWPANEL.html">
            
                    
                    选择视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.29" data-path="../CTRLS/WIZARDPANEL.html">
            
                <a href="../CTRLS/WIZARDPANEL.html">
            
                    
                    向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.30" data-path="../CTRLS/STATEWIZARDPANEL.html">
            
                <a href="../CTRLS/STATEWIZARDPANEL.html">
            
                    
                    状态向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.31" data-path="../CTRLS/CONTEXTMENU.html">
            
                <a href="../CTRLS/CONTEXTMENU.html">
            
                    
                    上下文菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.32" data-path="../CTRLS/TOOLBAR.html">
            
                <a href="../CTRLS/TOOLBAR.html">
            
                    
                    工具栏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <span>
            
                    
                    编辑器
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../EDITORS/BASIC.html">
            
                <a href="../EDITORS/BASIC.html">
            
                    
                    基础类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../EDITORS/SHOW.html">
            
                <a href="../EDITORS/SHOW.html">
            
                    
                    展示类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../EDITORS/SELECT.html">
            
                <a href="../EDITORS/SELECT.html">
            
                    
                    选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../EDITORS/TIME.html">
            
                <a href="../EDITORS/TIME.html">
            
                    
                    时间类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../EDITORS/FILEUPLOADlIST.html">
            
                <a href="../EDITORS/FILEUPLOADlIST.html">
            
                    
                    文件上传类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../EDITORS/DATASELECT.html">
            
                <a href="../EDITORS/DATASELECT.html">
            
                    
                    数据选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../EDITORS/AUTOCOMPLETELIST.html">
            
                <a href="../EDITORS/AUTOCOMPLETELIST.html">
            
                    
                    自动填充类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <span>
            
                    
                    逻辑
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../LOGIC/APPFUNC.html">
            
                <a href="../LOGIC/APPFUNC.html">
            
                    
                    应用功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="../LOGIC/ACTION.html">
            
                <a href="../LOGIC/ACTION.html">
            
                    
                    界面行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="../LOGIC/VIEWLOGIC.html">
            
                <a href="../LOGIC/VIEWLOGIC.html">
            
                    
                    视图逻辑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <span>
            
                    
                    UI服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="../UISERVICE/CTRLSERVICE.html">
            
                <a href="../UISERVICE/CTRLSERVICE.html">
            
                    
                    部件服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="../UISERVICE/UISERVICE.html">
            
                <a href="../UISERVICE/UISERVICE.html">
            
                    
                    界面服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3" data-path="../UISERVICE/AUTHSERVICE.html">
            
                <a href="../UISERVICE/AUTHSERVICE.html">
            
                    
                    权限服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="../UISERVICE/CODELISTSERVICE.html">
            
                <a href="../UISERVICE/CODELISTSERVICE.html">
            
                    
                    代码表服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="../UISERVICE/COUNTERSERVICE.html">
            
                <a href="../UISERVICE/COUNTERSERVICE.html">
            
                    
                    计数器服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.6" data-path="../UISERVICE/APPUTILSERVICE.html">
            
                <a href="../UISERVICE/APPUTILSERVICE.html">
            
                    
                    应用功能服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.7" data-path="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                <a href="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                    
                    视图消息服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
                <span>
            
                    
                    数据服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../DATASERVICE/DATASERVICE.html">
            
                <a href="../DATASERVICE/DATASERVICE.html">
            
                    
                    数据服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="PROBLEM.html">
            
                <a href="PROBLEM.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >临时模式</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x4E34;&#x65F6;&#x6A21;&#x5F0F;">&#x4E34;&#x65F6;&#x6A21;&#x5F0F;</h2>
<p>Vue-R7&#x4E34;&#x65F6;&#x6A21;&#x5F0F;&#x7684;&#x51FA;&#x73B0;&#x4E3B;&#x8981;&#x9002;&#x914D;&#x5E26;&#x6709;&#x4E3B;&#x4ECE;&#x4E1A;&#x52A1;&#x5173;&#x7CFB;&#x6570;&#x636E;&#x7684;&#x6574;&#x4F53;&#x63D0;&#x4EA4;&#x7684;&#x573A;&#x666F;&#xFF0C;&#x5176;&#x8868;&#x73B0;&#x5F62;&#x5F0F;&#xFF1A;&#x542F;&#x7528;&#x4E34;&#x65F6;&#x6A21;&#x5F0F;&#xFF0C;&#x524D;&#x540E;&#x7AEF;&#x4EA4;&#x4E92;&#x662F;&#x4EE5;&#x5305;&#x6570;&#x636E;&#x7684;&#x5F62;&#x5F0F;&#x6765;&#x8FDB;&#x884C;&#x4EA4;&#x4E92;&#x7684;&#xFF1B;&#x5F53;&#x4E3B;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x64CD;&#x4F5C;&#x65F6;&#xFF0C;&#x524D;&#x7AEF;&#x4F1A;&#x5C06;&#x4E3B;&#x4ECE;&#x6240;&#x6709;&#x6570;&#x636E;&#x4EE5;&#x5305;&#x6570;&#x636E;&#x7684;&#x5F62;&#x5F0F;&#x4F20;&#x5165;&#x8C03;&#x7528;&#x540E;&#x53F0;&#x670D;&#x52A1;&#x63A5;&#x53E3;&#x5B8C;&#x6210;&#x6570;&#x636E;&#x64CD;&#x4F5C;&#xFF0C;&#x5355;&#x5355;&#x64CD;&#x4F5C;&#x4ECE;&#x6570;&#x636E;&#x524D;&#x7AEF;&#x76F4;&#x63A5;&#x5B8C;&#x6210;&#x3002;&#x4E0B;&#x9762;&#x63CF;&#x8FF0;Vue-R7&#x5982;&#x4F55;&#x6765;&#x5B9E;&#x73B0;&#x4E34;&#x65F6;&#x6A21;&#x5F0F;&#x76F8;&#x5E94;&#x7684;&#x529F;&#x80FD;&#x3002;</p>
<p>&#x5B9E;&#x73B0;&#x4E34;&#x65F6;&#x6A21;&#x5F0F;&#x7684;&#x6838;&#x5FC3;&#x5C31;&#x662F;&#x524D;&#x7AEF;&#x6570;&#x636E;&#x5B58;&#x50A8;&#x7684;&#x8BBE;&#x8BA1;&#xFF0C;&#x8FD9;&#x513F;&#x9009;&#x62E9;&#x6D4F;&#x89C8;&#x5668;localStorage&#x5B58;&#x50A8;&#x5BF9;&#x8C61;&#x6765;&#x5B58;&#x50A8;&#x4E34;&#x65F6;&#x6570;&#x636E;&#xFF0C;&#x5176;&#x5B58;&#x50A8;&#x6570;&#x636E;&#x7684;&#x952E;&#x503C;&#x4E3A;UI&#x754C;&#x9762;&#x552F;&#x4E00;&#x6807;&#x8BC6;(srfsessionid&#xFF0C;&#x89C6;&#x56FE;&#x521D;&#x59CB;&#x5316;&#x751F;&#x6210;)&#x548C;&#x5173;&#x7CFB;&#x4EE3;&#x7801;&#x540D;&#x79F0;&#x7EC4;&#x6210;&#x3002;&#x4E0B;&#x9762;&#x4ECE;&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;&#x548C;&#x4E1A;&#x52A1;&#x4ECE;&#x6570;&#x636E;&#x4E24;&#x65B9;&#x9762;&#x5BF9;&#x4E34;&#x65F6;&#x6A21;&#x5F0F;&#x7684;&#x903B;&#x8F91;&#x8FDB;&#x884C;&#x68B3;&#x7406;&#xFF1A;</p>
<h3 id="&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;">&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;</h3>
<p>&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;&#x7684;&#x4E34;&#x65F6;&#x6A21;&#x5F0F;&#x903B;&#x8F91;&#x4ECE;UI&#x5C42;&#x3001;&#x90E8;&#x4EF6;&#x670D;&#x52A1;&#x5C42;&#x548C;&#x6570;&#x636E;&#x670D;&#x52A1;&#x5C42;&#x4E09;&#x65B9;&#x9762;&#x6765;&#x9610;&#x8FF0;&#xFF1A;</p>
<p><img src="images/1599471036971.png" style="border: 1px solid #e8e8e8;width: 100%;padding: 12px;"></p>
<ul>
<li>&#x7531;&#x8DEF;&#x7531;&#x6253;&#x5F00;&#x7684;&#x89C6;&#x56FE;&#x4F1A;&#x521D;&#x59CB;&#x5316;&#x8BE5;&#x89C6;&#x56FE;&#x7684;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#xFF0C;&#x5408;&#x5165;&#x5BFC;&#x822A;&#x4E0A;&#x4E0B;&#x6587;&#x5BF9;&#x8C61;&#xFF0C;&#x4EE5;&#x4F9B;&#x6570;&#x636E;&#x670D;&#x52A1;&#x5C42;&#x4F7F;&#x7528;&#xFF0C;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x89E3;&#x6790;&#x89C6;&#x56FE;&#x53C2;&#x6570;
     *
     * @public
     * @memberof ${srfclassname(&apos;${view.name}&apos;)}Base
     */</span>
    <span class="hljs-keyword">public</span> parseViewParam(inputvalue:<span class="hljs-built_in">any</span> = <span class="hljs-literal">null</span>): <span class="hljs-built_in">void</span> {
        ...
        <span class="hljs-comment">//&#x521D;&#x59CB;&#x5316;&#x89C6;&#x56FE;&#x552F;&#x4E00;&#x6807;&#x8BC6;</span>
        <span class="hljs-built_in">Object</span>.assign(<span class="hljs-keyword">this</span>.context,{srfsessionid:<span class="hljs-keyword">this</span>.$util.createUUID()});
        ...
    }
</code></pre>
<ul>
<li>&#x89C6;&#x56FE;&#x9500;&#x6BC1;&#xFF0C;&#x9500;&#x6BC1;&#x4E0E;&#x5F53;&#x524D;&#x89C6;&#x56FE;&#x76F8;&#x5173;&#x7684;&#x524D;&#x7AEF;&#x5B58;&#x50A8;&#x6570;&#x636E;</li>
</ul>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x6267;&#x884C;destroyed&#x540E;&#x7684;&#x903B;&#x8F91;
     * 
     * @memberof ${srfclassname(&apos;${view.name}&apos;)}Base
     */</span>
    <span class="hljs-keyword">public</span> afterDestroyed(){
        <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.viewDefaultUsage){
            <span class="hljs-keyword">let</span> localStoreLength = <span class="hljs-built_in">Object</span>.keys(localStorage);
            <span class="hljs-keyword">if</span>(localStoreLength.length &gt; <span class="hljs-number">0</span>){
                localStoreLength.forEach((item:<span class="hljs-built_in">string</span>) =&gt;{
                <span class="hljs-keyword">if</span>(item.startsWith(<span class="hljs-keyword">this</span>.context.srfsessionid)){
                    localStorage.removeItem(item);
                }
                })
            }
            ...
        }
    }
</code></pre>
<ul>
<li>&#x4E3A;&#x9632;&#x6B62;&#x529F;&#x80FD;&#x5206;&#x5C42;&#x6DF7;&#x6DC6;&#xFF08;&#x6570;&#x636E;&#x670D;&#x52A1;&#x5C42;&#x4E00;&#x76F4;&#x4EA4;&#x8054;&#x7740;UI&#x5C42;&#x7684;&#x6570;&#x636E;&#xFF09;&#xFF0C;&#x5728;&#x90E8;&#x4EF6;&#x670D;&#x52A1;&#x57FA;&#x7C7B;&#x6DFB;&#x52A0;UI&#x5C42;&#x5BF9;&#x5E94;&#x7684;&#x89C6;&#x56FE;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x548C;&#x6570;&#x636E;&#x670D;&#x52A1;&#x5C42;&#x5BF9;&#x5E94;&#x4E0A;&#x4E0B;&#x6587;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x6DFB;&#x52A0;&#x8F6C;&#x5316;&#x903B;&#x8F91;&#xFF0C;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x5904;&#x7406;&#x8BF7;&#x6C42;&#x6570;&#x636E;
     * 
     * @param action &#x884C;&#x4E3A; 
     * @param data &#x6570;&#x636E;
     * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Service
     */</span>
    <span class="hljs-keyword">public</span> handleRequestData(action: <span class="hljs-built_in">string</span>,context:<span class="hljs-built_in">any</span>, data: <span class="hljs-built_in">any</span> = {},isMerge:<span class="hljs-built_in">boolean</span> = <span class="hljs-literal">false</span>){
        ...
        <span class="hljs-keyword">if</span>(tempContext &amp;&amp; tempContext.srfsessionid){
            tempContext.srfsessionkey = tempContext.srfsessionid;
            <span class="hljs-keyword">delete</span> tempContext.srfsessionid;
        }
        ...
    }
</code></pre>
<ul>
<li>&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;&#x7684;&#x6570;&#x636E;&#x670D;&#x52A1;&#x91CC;&#x9762;&#x5305;&#x542B;&#x8BF7;&#x6C42;&#x63A5;&#x53E3;&#x6570;&#x636E;&#x540E;&#x5230;&#x672C;&#x5730;&#x5B58;&#x50A8;&#x6570;&#x636E;&#x548C;&#x8BF7;&#x6C42;&#x63A5;&#x53E3;&#x4E4B;&#x524D;&#x7EC4;&#x88C5;&#x6570;&#x636E;2&#x79CD;&#x60C5;&#x51B5;&#xFF0C;&#x5176;&#x64CD;&#x4F5C;&#x7684;&#x952E;&#x503C;&#x4E3A;&#xFF1A;context[&apos;srfsessionkey&apos;]_&#x5173;&#x7CFB;&#x4EE3;&#x7801;&#x540D;&#x79F0;&#xFF0C;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-typescript"><span class="hljs-comment">/**
* Get&#x63A5;&#x53E3;&#x65B9;&#x6CD5;
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise&lt;any&gt;}
* @memberof ORDERServiceBase
*/</span>
<span class="hljs-keyword">public</span> async Get(context: <span class="hljs-built_in">any</span> = {},data: <span class="hljs-built_in">any</span> = {}, isloading?: <span class="hljs-built_in">boolean</span>): Promise&lt;<span class="hljs-built_in">any</span>&gt; {
  <span class="hljs-keyword">let</span> res:<span class="hljs-built_in">any</span> = await Http.getInstance().get(<span class="hljs-string">`/orders/<span class="hljs-subst">${context.order}</span>`</span>,isloading);
  <span class="hljs-comment">// &#x5B58;&#x50A8;&#x6570;&#x636E;&#x5230;&#x672C;&#x5730;</span>
  <span class="hljs-keyword">this</span>.tempStorage.setItem(context.srfsessionkey+<span class="hljs-string">&apos;_orderlines&apos;</span>,<span class="hljs-built_in">JSON</span>.stringify(res.data.orderlines?res.data.orderlines:[]));
       <span class="hljs-keyword">return</span> res;
}

<span class="hljs-comment">/**
* Save&#x63A5;&#x53E3;&#x65B9;&#x6CD5;
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise&lt;any&gt;}
* @memberof ORDERServiceBase
*/</span>
<span class="hljs-keyword">public</span> async Save(context: <span class="hljs-built_in">any</span> = {},data: <span class="hljs-built_in">any</span> = {}, isloading?: <span class="hljs-built_in">boolean</span>): Promise&lt;<span class="hljs-built_in">any</span>&gt; {
  <span class="hljs-keyword">let</span> masterData:<span class="hljs-built_in">any</span> = {};
  <span class="hljs-keyword">let</span> orderlinesData:<span class="hljs-built_in">any</span> = [];
  <span class="hljs-keyword">if</span>(!<span class="hljs-built_in">Object</span>.is(<span class="hljs-keyword">this</span>.tempStorage.getItem(context.srfsessionkey+<span class="hljs-string">&apos;_orderlines&apos;</span>),<span class="hljs-string">&apos;undefined&apos;</span>)){
    <span class="hljs-comment">// &#x7EC4;&#x88C5;&#x6570;&#x636E;</span>
    orderlinesData = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-keyword">this</span>.tempStorage.getItem(context.srfsessionkey+<span class="hljs-string">&apos;_orderlines&apos;</span>) as <span class="hljs-built_in">any</span>);
    <span class="hljs-keyword">if</span>(orderlinesData &amp;&amp; orderlinesData.length &amp;&amp; orderlinesData.length &gt; <span class="hljs-number">0</span>){
        orderlinesData.forEach((item:<span class="hljs-built_in">any</span>) =&gt; {
            <span class="hljs-keyword">if</span>(item.srffrontuf){
                <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Object</span>.is(item.srffrontuf,<span class="hljs-string">&quot;0&quot;</span>)){
                    item.orderlineid = <span class="hljs-literal">null</span>;
                    <span class="hljs-keyword">if</span>(item.hasOwnProperty(<span class="hljs-string">&apos;orderid&apos;</span>) &amp;&amp; item.orderid) item.orderid = <span class="hljs-literal">null</span>;
                }
                <span class="hljs-keyword">delete</span> item.srffrontuf;
            }
        });
    }
}
masterData.orderlines = orderlinesData;
<span class="hljs-built_in">Object</span>.assign(data,masterData);
<span class="hljs-keyword">let</span> res:<span class="hljs-built_in">any</span> = await                       Http.getInstance().post(<span class="hljs-string">`/orders/<span class="hljs-subst">${context.order}</span>/save`</span>,data,isloading);  
<span class="hljs-comment">// &#x5B58;&#x50A8;&#x6570;&#x636E;&#x5230;&#x672C;&#x5730;</span>
<span class="hljs-keyword">this</span>.tempStorage.setItem(context.srfsessionkey+<span class="hljs-string">&apos;_orderlines&apos;</span>,<span class="hljs-built_in">JSON</span>.stringify(res.data.orderlines?res.data.orderlines:[]));
    <span class="hljs-keyword">return</span> res;
}
</code></pre>
<h3 id="&#x4E1A;&#x52A1;&#x4ECE;&#x6570;&#x636E;">&#x4E1A;&#x52A1;&#x4ECE;&#x6570;&#x636E;</h3>
<p>&#x4E1A;&#x52A1;&#x4ECE;&#x6570;&#x636E;&#x548C;&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;&#x7684;&#x5904;&#x7406;&#x903B;&#x8F91;&#x533A;&#x522B;&#x6709;2&#x70B9;&#xFF1A;1&#xFF09;&#x5728;UI&#x5C42;&#x9762;&#x4E0A;&#xFF0C;&#x5B83;&#x4E0D;&#x9700;&#x8981;&#x53BB;&#x521D;&#x59CB;&#x5316;&#x89C6;&#x56FE;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#xFF0C;&#x662F;&#x7531;&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;UI&#x5C42;&#x4F20;&#x5165;&#xFF1B;2&#xFF09;&#x5728;&#x6570;&#x636E;&#x670D;&#x52A1;&#x5C42;&#x4E0A;&#xFF0C;&#x5B83;&#x4E0D;&#x9700;&#x8981;&#x4E0E;&#x540E;&#x53F0;&#x8FDB;&#x884C;&#x4EA4;&#x4E92;&#xFF0C;&#x5168;&#x7A0B;&#x548C;&#x672C;&#x5730;&#x5B58;&#x50A8;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x4EA4;&#x4E92;&#x3002;</p>
<p><img src="images/1599471384933.png" style="border: 1px solid #e8e8e8;width: 100%;padding: 12px;"></p>
<ul>
<li>&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;&#x521D;&#x59CB;&#x5316;&#x89C6;&#x56FE;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#xFF0C;&#x5408;&#x5165;&#x5230;&#x5BFC;&#x822A;&#x4E0A;&#x4E0B;&#x6587;&#x4E2D;&#xFF0C;&#x8DDF;&#x968F;&#x5BFC;&#x822A;&#x4E0A;&#x4E0B;&#x6587;&#x4E00;&#x540C;&#x4F20;&#x5165;&#x5230;&#x4E1A;&#x52A1;&#x4ECE;&#x6570;&#x636E;&#x5BB9;&#x5668;&#x4E2D;&#x4F9B;&#x5176;&#x4F7F;&#x7528;&#xFF0C;&#x8BE6;&#x60C5;&#x53EF;&#x53C2;&#x89C1;<a href="APPS/NAVPARAM.md">&#x81EA;&#x5B9A;&#x4E49;&#x5BFC;&#x822A;&#x53C2;&#x6570;</a>&#x7BC7;</li>
<li>&#x90E8;&#x4EF6;&#x670D;&#x52A1;&#x5C42;&#x5904;&#x7406;&#x903B;&#x8F91;&#x548C;&#x4E1A;&#x52A1;&#x4E3B;&#x6570;&#x636E;&#x7684;&#x5904;&#x7406;&#x903B;&#x8F91;&#x4E00;&#x81F4;</li>
<li>&#x6570;&#x636E;&#x670D;&#x52A1;&#x5C42;&#x5185;&#x7F6E;&#x4E86;&#x5927;&#x91CF;&#x9884;&#x7F6E;&#x884C;&#x4E3A;&#xFF08;&#x6570;&#x636E;&#x670D;&#x52A1;&#x57FA;&#x7C7B;&#xFF09;&#xFF0C;&#x5982;GetTemp&#xFF08;&#x67E5;&#x8BE2;&#x6307;&#x5B9A;&#x4E3B;&#x952E;&#x7684;&#x4E34;&#x65F6;&#x6570;&#x636E;&#xFF09;&#x3001;UpdateTemp&#xFF08;&#x66F4;&#x65B0;&#x6307;&#x5B9A;&#x4E3B;&#x952E;&#x7684;&#x4E34;&#x65F6;&#x6570;&#x636E;&#xFF09;&#x7B49;&#x7B49;&#x884C;&#x4E3A;&#xFF0C;&#x8FD9;&#x4E9B;&#x884C;&#x4E3A;&#x7531;&#x90E8;&#x4EF6;&#x6839;&#x636E;&#x6A21;&#x578B;&#x6570;&#x636E;&#x52A8;&#x6001;&#x8C03;&#x7528;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#x3002;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * GetTemp&#x63A5;&#x53E3;&#x65B9;&#x6CD5;
     *
     * @param {*} [context={}]
     * @param {*} [data={}]
     * @param {boolean} [isloading]
     * @returns {Promise&lt;any&gt;}
     * @memberof EntityService
     */</span>
    <span class="hljs-keyword">public</span> async GetTemp(context: <span class="hljs-built_in">any</span> = {},data: <span class="hljs-built_in">any</span> = {}, isloading?: <span class="hljs-built_in">boolean</span>): Promise&lt;<span class="hljs-built_in">any</span>&gt; {
        <span class="hljs-keyword">if</span>(context.srfsessionkey &amp;&amp; !<span class="hljs-built_in">Object</span>.is(<span class="hljs-keyword">this</span>.tempStorage.getItem(context.srfsessionkey+<span class="hljs-string">&apos;_&apos;</span>+<span class="hljs-keyword">this</span>.APPDENAME),<span class="hljs-string">&apos;undefined&apos;</span>)){
            <span class="hljs-keyword">let</span> result:<span class="hljs-built_in">any</span> = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-keyword">this</span>.tempStorage.getItem(context.srfsessionkey+<span class="hljs-string">&apos;_&apos;</span>+<span class="hljs-keyword">this</span>.APPDENAME) as <span class="hljs-built_in">any</span>);
            <span class="hljs-keyword">if</span>(result){
                <span class="hljs-keyword">let</span> tempResult:<span class="hljs-built_in">any</span> = result.filter((item:<span class="hljs-built_in">any</span>) =&gt;{
                    <span class="hljs-keyword">return</span> <span class="hljs-built_in">Object</span>.is(item[<span class="hljs-keyword">this</span>.APPDEKEY],data[<span class="hljs-keyword">this</span>.APPDEKEY]);
                })
                <span class="hljs-keyword">let</span> tempResultData:<span class="hljs-built_in">any</span> = tempResult.length&gt;<span class="hljs-number">0</span>?tempResult[<span class="hljs-number">0</span>]:<span class="hljs-built_in">Object</span>.assign({},data);
                <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;status&quot;</span>:<span class="hljs-number">200</span>,<span class="hljs-string">&quot;data&quot;</span>:tempResultData};
            }<span class="hljs-keyword">else</span>{
                <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;status&quot;</span>:<span class="hljs-number">500</span>,<span class="hljs-string">&quot;data&quot;</span>:<span class="hljs-literal">null</span>};
            } 
        }
    }
    <span class="hljs-comment">/**
     * UpdateTemp&#x63A5;&#x53E3;&#x65B9;&#x6CD5;
     *
     * @param {*} [context={}]
     * @param {*} [data={}]
     * @param {boolean} [isloading]
     * @returns {Promise&lt;any&gt;}
     * @memberof EntityService
     */</span>
    <span class="hljs-keyword">public</span> async UpdateTemp(context: <span class="hljs-built_in">any</span> = {},data: <span class="hljs-built_in">any</span> = {}, isloading?: <span class="hljs-built_in">boolean</span>): Promise&lt;<span class="hljs-built_in">any</span>&gt; {
        <span class="hljs-keyword">if</span>(context.srfsessionkey &amp;&amp; !<span class="hljs-built_in">Object</span>.is(<span class="hljs-keyword">this</span>.tempStorage.getItem(context.srfsessionkey+<span class="hljs-string">&apos;_&apos;</span>+<span class="hljs-keyword">this</span>.APPDENAME),<span class="hljs-string">&apos;undefined&apos;</span>)){
            <span class="hljs-keyword">let</span> result:<span class="hljs-built_in">any</span> = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-keyword">this</span>.tempStorage.getItem(context.srfsessionkey+<span class="hljs-string">&apos;_&apos;</span>+<span class="hljs-keyword">this</span>.APPDENAME) as <span class="hljs-built_in">any</span>);
            <span class="hljs-keyword">let</span> tempData:<span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">any</span>&gt; = [];
            <span class="hljs-keyword">if</span>(result &amp;&amp; result.length &gt;<span class="hljs-number">0</span>){
                result.forEach((item:<span class="hljs-built_in">any</span>) =&gt; {
                    <span class="hljs-keyword">let</span> singleData:<span class="hljs-built_in">any</span> = {};
                    <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Object</span>.is(item[<span class="hljs-keyword">this</span>.APPDEKEY],data[<span class="hljs-keyword">this</span>.APPDEKEY])){
                        <span class="hljs-built_in">Object</span>.keys(item).forEach((field:<span class="hljs-built_in">any</span>) =&gt;{
                            singleData[field] = data[field]?data[field]:item[field];
                        })
                    }
                    <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Object</span>.keys(singleData).length &gt;<span class="hljs-number">0</span>){
                        tempData.push(singleData);
                    }<span class="hljs-keyword">else</span>{
                        tempData.push(item);
                    }  
                });
                <span class="hljs-keyword">this</span>.tempStorage.setItem(context.srfsessionkey+<span class="hljs-string">&apos;_&apos;</span>+<span class="hljs-keyword">this</span>.APPDENAME,<span class="hljs-built_in">JSON</span>.stringify(tempData));
                <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;status&quot;</span>:<span class="hljs-number">200</span>,<span class="hljs-string">&quot;data&quot;</span>:data};
            }<span class="hljs-keyword">else</span>{
                <span class="hljs-keyword">return</span> {<span class="hljs-string">&quot;status&quot;</span>:<span class="hljs-number">500</span>,<span class="hljs-string">&quot;data&quot;</span>:<span class="hljs-literal">null</span>};
            }
        }
    }
    ......
</code></pre>
<p><strong><em>&#x6CE8;&#xFF1A;&#x4E34;&#x65F6;&#x6A21;&#x5F0F;&#x4E0D;&#x80FD;&#x4F7F;&#x7528;&#x8DEF;&#x7531;&#x65B9;&#x5F0F;&#x6253;&#x5F00;&#x4E1A;&#x52A1;&#x4ECE;&#x6570;&#x636E;&#x89C6;&#x56FE;&#xFF0C;&#x539F;&#x56E0;&#x662F;&#x901A;&#x8FC7;&#x8DEF;&#x7531;&#x6253;&#x5F00;&#x4E1A;&#x52A1;&#x4ECE;&#x6570;&#x636E;&#x89C6;&#x56FE;&#xFF0C;&#x5B83;&#x4F1A;&#x81EA;&#x5DF1;&#x521D;&#x59CB;&#x5316;&#x4E00;&#x4E2A;&#x89C6;&#x56FE;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#xFF0C;&#x8FD9;&#x6837;2&#x8005;&#x7684;&#x89C6;&#x56FE;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x4E0D;&#x4E00;&#x81F4;&#xFF0C;&#x6570;&#x636E;&#x670D;&#x52A1;&#x4F1A;&#x8BA4;&#x4E3A;2&#x8005;&#x662F;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x5173;&#x7CFB;&#xFF0C;&#x4ECE;&#x800C;&#x5BFC;&#x81F4;&#x7A0B;&#x5E8F;&#x5F02;&#x5E38;&#x3002;</em></strong></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="NAVG.html" class="navigation navigation-prev " aria-label="Previous page: 导航模式">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Theme.html" class="navigation navigation-next " aria-label="Next page: 应用主题">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"临时模式","level":"2.1.5","depth":2,"next":{"title":"应用主题","level":"2.1.6","depth":2,"path":"APPS/Theme.md","ref":"./APPS/Theme.md","articles":[]},"previous":{"title":"导航模式","level":"2.1.4","depth":2,"path":"APPS/NAVG.md","ref":"./APPS/NAVG.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"APPS/TEMP.md","mtime":"2020-09-07T10:11:21.837Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-02T06:38:45.289Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

